<layout name="inner"/>
<eq name="download_flag" value="0">
	<div class="uk-alert uk-alert-danger">{$Think.lang.download_notice}</div>
</eq>
<eq name="download_flag" value="1">
	<a href="__CONTROLLER__/downloadCsv" class="uk-button uk-button-primary uk-width-1-1">{$Think.lang.download_csv}</a>
</eq>
<load href="__PUBLIC__/{:UIKIT}/css/components/datepicker.almost-flat.min.css"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/datepicker.min.js"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/lightbox.min.js"/> 
<form class="uk-form">
    <div class="uk-grid">
		<div class="uk-width-medium-1-4 uk-width-small-1-2">#:<input type="text" name="order_id" placeholder="" class="uk-width-1-1"></div>
		 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.merchant_oid}:<input type="text" name="mh_oid" placeholder="" class="uk-width-1-1"></div>
	    <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.creditcard_type}:
		<select name="card_type">
		<option value="">--</option>
		<volist name=":creditcardList()" id="vo">
		<option value="{$vo}">{$vo}</option>
		</volist>
		</select>
		</div>
        <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.status}:<select name="order_status">
		<option value="">--</option>
<volist name="Think.lang.order_status" id="vo">		
		<option value="{$key}">{$vo}</option>
 </volist>		
		</select>
		</div>
		 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.start_time}:<input type="text" name="order_time_start"  data-uk-datepicker="{format:'YYYY-MM-DD'}" placeholder="" class="uk-width-1-1"></div>
		  <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.end_time}:<input type="text" name="order_time_end"  data-uk-datepicker="{format:'YYYY-MM-DD'}" placeholder="" class="uk-width-1-1"></div>
		    <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.site}:
		<select name="order_siteid">
		<option value="">--</option>
		<volist name=":getObjectPro('site','site_id desc','','site_mid',$merchant_info['mh_id'])" id="vo">
		<option value="{$vo.site_id}">{$vo.site_domain}</option>
		</volist>
		</select>			
			</div>
			 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.email}:<input type="text" name="bill_email" placeholder="" class="uk-width-1-1"></div>
				 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.firstname}:<input type="text" name="bill_firstname" placeholder="" class="uk-width-1-1"></div>
				  <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.lastname}:<input type="text" name="bill_lastname" placeholder="" class="uk-width-1-1"></div>
				  <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.phone}:<input type="text" name="bill_phone" placeholder="" class="uk-width-1-1"></div>
				    
    </div>
<p><label><input type="checkbox" name="create_csv"/>&nbsp;{$Think.lang.create_csv}</label></p>
	<p>
<button type="submit" class="uk-button uk-button-danger">{$Think.lang.search}</button>
</p>
</form>


          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
              <thead>
                <tr>
                  <th>#</th>
				  <th width=180>{$Think.lang.add_time}</th>
				  <th>{$Think.lang.merchant_oid}</th>
				  <th>{$Think.lang.amount}</th>
				  <th>{$Think.lang.email}</th>
				  <th>{$Think.lang.creditcard_type}</th>
				  <th>{$Think.lang.status}</th>
                </tr>
              </thead>
              <tbody>
				  <volist name="list" id="vo">
                <tr>
                  <td><a href="__CONTROLLER__/details/{$vo.order_id}">{$vo.order_id}</a>
				  <eq name="vo.ips_id" value="[TEST]">[TEST]</eq>
				  </td>
				  <td>{$vo.order_time}</td>
				    <td>{$vo.mh_oid}</td>
					  <td>{$vo.order_amount}{$vo.order_currency}</td>
					    <td>{$vo.bill_email}</td>
						<td>{$vo.card_type}</td>
						<td>{$vo.order_status|order_status=true}</td>
                </tr>
			</volist>
              </tbody>
            </table>
			{$page}
          </div>